package com.springboot.cloud.gateway.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot.cloud.gateway.entity.po.GatewayRoute;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface GatewayRouteMapper extends BaseMapper<GatewayRoute> {
    @Select("SELECT id,route_id as routeId,uri,predicates,filters,orders,description,status from gateway_route")
    List<GatewayRoute> queryAll();

}
